package com.mfhcd.facepay.model;

import androidx.annotation.NonNull;
import androidx.databinding.BaseObservable;

import com.mfhcd.facepay.utils.Convert;

import java.io.Serializable;

/**
 * 获取服务器响应的model
 */
public class BaseResponseModel<T> extends BaseObservable implements Serializable {
    //saas
    public String code;
    public String message;
    public String system;
    public String trace;
    /**响应data数据*/
    public T data;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getSystem() {
        return system;
    }

    public String getTrace() {
        return trace;
    }

    @NonNull
    @Override
    public String toString() {
        return Convert.toJson(this);
    }
}
